package com.example.forum.dao;

import com.example.forum.model.Article;
import io.swagger.annotations.ApiParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int insert(Article row);

    int insertSelective(Article row);

    Article selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Article row);

    int updateByPrimaryKeyWithBLOBs(Article row);

    int updateByPrimaryKey(Article row);

    List<Article> selectAllByBoardId();

    List<Article> selectByBoardId(Long board_id);

    Article selectArticle(Long articleId);

    Integer deleteArticle(Long articleId);

    List<Article> selectArticleByUserId(Long userId);
}